import { _decorator, Component, Node } from 'cc';
import { CaptureNode } from './CaptureNode';
const { ccclass, property } = _decorator;

@ccclass('CaptureTest')
export class CaptureTest extends Component {
    @property(CaptureNode)
    capture: CaptureNode = null!;
    start() {
        const n = this.capture.captureScreenAsync();
        this.node.addChild(n);
    }

    update(deltaTime: number) {}
}
